/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoexam.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 证照培训业务Entity
 * @author zms
 * @version 2018-04-15
 */
public class CampusinfoTrainType extends DataEntity<CampusinfoTrainType> {
	
	private static final long serialVersionUID = 1L;
	private String trainType;		// 业务名称
	private String trainShort;		// 简介
	private String trainImg;		// 图片
	
	public CampusinfoTrainType() {
		super();
	}

	public CampusinfoTrainType(String id){
		super(id);
	}

	@Length(min=1, max=30, message="业务名称长度必须介于 1 和 30 之间")
	public String getTrainType() {
		return trainType;
	}

	public void setTrainType(String trainType) {
		this.trainType = trainType;
	}
	
	@Length(min=0, max=255, message="简介长度必须介于 0 和 255 之间")
	public String getTrainShort() {
		return trainShort;
	}

	public void setTrainShort(String trainShort) {
		this.trainShort = trainShort;
	}
	
	@Length(min=0, max=255, message="图片长度必须介于 0 和 255 之间")
	public String getTrainImg() {
		return trainImg;
	}

	public void setTrainImg(String trainImg) {
		this.trainImg = trainImg;
	}
	
}